package com.qianya.oa.mapper;

import com.qianya.oa.domain.SysUserMessage;
import java.util.List;
import com.qianya.oa.vo.websocket.SysUserMessageVo;import org.apache.ibatis.annotations.Param;

public interface SysUserMessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysUserMessage record);

    int insertSelective(SysUserMessage record);

    SysUserMessage selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserMessage record);

    int updateByPrimaryKey(SysUserMessage record);

    int batchInsert(@Param("list") List<SysUserMessage> list);

    List<SysUserMessageVo> selectListByUId(Long uid);

    int setUnreadToRead(@Param("messageIdList") List<Long> messageIdList);

    int selectUnreadCount(Long uid);
}